package com.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the "BILLRECORD_copy" database table.
 * 
 */
@Entity
@Table(name="\"BILLRECORD_copy\"")
@NamedQuery(name="BILLRECORD_copy.findAll", query="SELECT b FROM BILLRECORD_copy b")
public class BILLRECORD_copy implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="BILLRECORD_COPY_BRID_GENERATOR", sequenceName="SEQ",initialValue=1,allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="BILLRECORD_COPY_BRID_GENERATOR")
	@Column(name="BR_ID")
	private Long brId;

	@Column(name="BR_CHARGE")
	private String brCharge;

	@Column(name="BR_CONTENT")
	private String brContent;

	@Temporal(TemporalType.DATE)
	@Column(name="BR_DATE")
	private Date brDate;

	@Column(name="BR_NUMBER")
	private String brNumber;

	@Column(name="BR_PAY")
	private BigDecimal brPay;

	@Column(name="BR_PAYPLAN")
	private BigDecimal brPayplan;

	@Column(name="BR_REMARK")
	private String brRemark;

	@Column(name="BR_TYPE")
	private String brType;

	private String customername;

	private String repairordernumber;
	
	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="REPAIRORDER_ID")
	private Repairorder repairorder;

	//维修工单id
	@Transient
	private Long repairorderId;

	public BILLRECORD_copy() {
	}

	public Long getBrId() {
		return this.brId;
	}

	public void setBrId(Long brId) {
		this.brId = brId;
	}

	public String getBrCharge() {
		return this.brCharge;
	}

	public void setBrCharge(String brCharge) {
		this.brCharge = brCharge;
	}

	public String getBrContent() {
		return this.brContent;
	}

	public void setBrContent(String brContent) {
		this.brContent = brContent;
	}

	public Date getBrDate() {
		return this.brDate;
	}

	public void setBrDate(Date brDate) {
		this.brDate = brDate;
	}

	public String getBrNumber() {
		return this.brNumber;
	}

	public void setBrNumber(String brNumber) {
		this.brNumber = brNumber;
	}

	public BigDecimal getBrPay() {
		return this.brPay;
	}

	public void setBrPay(BigDecimal brPay) {
		this.brPay = brPay;
	}

	public BigDecimal getBrPayplan() {
		return this.brPayplan;
	}

	public void setBrPayplan(BigDecimal brPayplan) {
		this.brPayplan = brPayplan;
	}

	public String getBrRemark() {
		return this.brRemark;
	}

	public void setBrRemark(String brRemark) {
		this.brRemark = brRemark;
	}

	public String getBrType() {
		return this.brType;
	}

	public void setBrType(String brType) {
		this.brType = brType;
	}

	public String getCustomername() {
		return this.customername;
	}

	public void setCustomername(String customername) {
		this.customername = customername;
	}

	public String getRepairordernumber() {
		return this.repairordernumber;
	}

	public void setRepairordernumber(String repairordernumber) {
		this.repairordernumber = repairordernumber;
	}

	public Repairorder getRepairorder() {
		return repairorder;
	}

	public void setRepairorder(Repairorder repairorder) {
		this.repairorder = repairorder;
	}

	public Long getRepairorderId() {
		return repairorderId;
	}

	public void setRepairorderId(Long repairorderId) {
		this.repairorderId = repairorderId;
	}

}